package com.plian.system.service.pf;

import com.plian.system.entity.pf.AppraisalIndex;
import com.plian.system.model.ListResult;
import com.plian.system.mybatis.base.BaseService;
import com.plian.system.mybatis.support.Query;
import com.plian.system.vo.pf.AppraisalIndexVO;

import java.util.List;

public interface IAppraisalIndexService extends BaseService<AppraisalIndex> {

    /**
     * @Author: Take-off
     * @Description: //TODO 根据code获取列表
     * @Date: 5:32 PM 2022/12/19
     * @Param: [code]
     * @return: java.util.List<com.plian.system.entity.pf.AppraisalIndex>
     **/
    List<AppraisalIndex> listByTableCode(String code);

    /**
     * 根据code和年份获取
     * @param code
     * @param year
     * @return
     */
    List<AppraisalIndex> listByTableCodeAndYear(String code, String year);

    ListResult<AppraisalIndexVO> listForTree(Query query);

    /**
     * @Author: Take-off
     * @Description: //TODO 根据tablecode获取树形
     * @Date: 2:33 PM 2023/1/29
     * @Param: [tableCode]
     * @return: com.plian.system.model.ListResult<com.plian.system.vo.pf.AppraisalIndexVO>
     **/
    ListResult<AppraisalIndexVO> treeByTableCode(String tableCode);
}
